package com.fast.modules.acd.entity;

import java.util.List;

import lombok.Data;

@Data
public class Seat {
	
	public static final int BUSY = -1;
	
	/**
	 * 构造方法
	 * @param seatID
	 * @param skills
	 */
	public Seat(String seatID, List<String> skills) {
		this.id = seatID;
		this.skills = skills;
		this.count = 0;
		this.idleTime = System.currentTimeMillis();
		this.busy = false;
		
	}
	
	
	private String id;
	
	
	/**
	 * 坐席接入的会话总数
	 */
	private int count;
	
	/**
	 * 坐席最近一次接入的会话时间
	 */
	private long idleTime;
	
	
	/**
	 * 坐席的技能列表
	 */
	private List<String> skills;
	
	
	private boolean busy;
	
	
	/**
	 * 每次为坐席分配会话的时候，需要修改相关的数据
	 * 修改会话总数，
	 * 修改当前会话数量
	 * 修改最近会话时间
	 */
	public void assign(Node node) {
		this.count++;
		this.idleTime = BUSY;
	}
	

}
